import { createRouter, createWebHistory } from 'vue-router'
import HomePage from '../components/HomePage.vue'
import SearchPage from '../components/SearchPage.vue'
import SearchResultsPage from '../components/SearchResultsPage.vue'
import UploadPage from '../components/UploadPage.vue'
import LoginPage from '../components/LoginPage.vue'
import MovieInfo from '../components/MovieInfoDetailPage.vue'

const routes = [
  { path: '/', component: HomePage },
  { path: '/search', component: SearchPage },
  { path: '/results', component: SearchResultsPage },
  { path: '/upload', component: UploadPage },
  { path: '/login', component: LoginPage },
  { path: '/movieInfo', component: MovieInfo },
]

const router = createRouter({
  history: createWebHistory(),
  routes,
})

export default router
